package stool.abstractfactorypattern.part1;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/7
 * @Description 抽象工厂模式
 */
public class Main {

    public static void main(String[] args) {

        User user = new User();

        IFactory factory = new SqlServerFactory();

        IUser iu = factory.createUser();

        iu.insert(user);
        iu.fetchUser("1");
    }
}
